<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<aside class="sidebar visible-lg user-select" th:fragment="rightbar"><!--右侧>992px显示-->
    <div class="sentence"><strong>每日一句</strong>
        <h2 id="time">0000年00月00日 星期日</h2>
        <p id="maxim" th:text="${session.maxim eq null?'更新异常':session.maxim.getMaximcontent()}">Maxim Content On
            There</p>
    </div>
    <div id="search" class="sidebar-block search" role="search">
        <h2 class="title"><strong>文章搜索</strong></h2>
        <form class="navbar-form" action="/article/search" method="post">
            <div class="input-group">
                <input type="text" name="searchContent" class="form-control" size="35" maxlength="10"
                       placeholder="请输入关键字">
                <span class="input-group-btn">
          <button class="btn btn-default btn-search" type="submit">搜索</button>
          </span></div>
        </form>
    </div>
    <div class="sidebar-block recommend">
        <h2 class="title"><strong>今日推荐</strong></h2>
        <!--此处报错并非存在异常，而在于后台代码编写以及idea解析问题-->
        <ul>
            <li th:each="rArticle:${session.randomArticle}"><a target="_blank" href="javascript:;"
                                                               th:href="'/article/show/'+${rArticle.getArticleid()}"> <span
                    class="thumb"><img
                    src="/img/main/icon/icon.png"
                    th:src="${rArticle.getArticlecover()}" alt="ArticleImg"></span>
                <span
                        class="text" th:text="${rArticle.getArticletitle()}">EasyShare技术博客的SHORTCUT和ICON图标 ...</span>
                <span
                        class="text-muted">阅读([[${rArticle.getArticleaudiences()}]])</span></a>
            </li>
        </ul>
    </div>
    <div class="sidebar-block comment" id="comment">
        <h2 class="title"><strong>本站留言</strong></h2>
        <ul>
            <li data-toggle="tooltip"><a href="javascript:;" th:each="lmData:${session.fiveData}"><span
                    class="face"><img src="/img/main/icon/icon.png" th:src="${lmData.getLmimg()}" alt="Tou"></span>
                <span
                        class="text"><strong th:text="${lmData.getLmpersonname()}">xxx</strong> ([[${#dates.format(lmData.getLmcreatetime(),'yyyy-MM-dd HH:mm:ss')}]]) 说：<br/>
          [[${lmData.getLmcontent()}]]</span></a></li>
        </ul>
    </div>
</aside>
</body>
</html>